package cn.edu.wfit.modules.learn.mapper.competitionmanagement;

import cn.edu.wfit.modules.learn.domain.WfitCompetition;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 竞赛Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-28
 */
@Mapper
public interface WfitCompetitionMapper
{
    /**
     * 查询竞赛
     * 
     * @param id 竞赛主键
     * @return 竞赛
     */
    public WfitCompetition selectWfitCompetitionById(Long id);

    /**
     * 查询竞赛列表
     * 
     * @param wfitCompetition 竞赛
     * @return 竞赛集合
     */
    public List<WfitCompetition> selectWfitCompetitionList(WfitCompetition wfitCompetition);

    /**
     * 新增竞赛
     * 
     * @param wfitCompetition 竞赛
     * @return 结果
     */
    public int insertWfitCompetition(WfitCompetition wfitCompetition);

    /**
     * 修改竞赛
     * 
     * @param wfitCompetition 竞赛
     * @return 结果
     */
    public int updateWfitCompetition(WfitCompetition wfitCompetition);

    /**
     * 删除竞赛
     * 
     * @param id 竞赛主键
     * @return 结果
     */
    public int deleteWfitCompetitionById(Long id);

    /**
     * 批量删除竞赛
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWfitCompetitionByIds(Long[] ids);
}
